<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\Contract\StdoutLoggerInterface;
use Psr\Log\LogLevel;

use function Hyperf\Support\env;

return [
    'app_name' => env('APP_NAME', 'skeleton'),
    'app_env' => env('APP_ENV', 'dev'),
    'app_domain' => env('APP_DOMAIN', 'dev'),
    'app_host' => env('APP_HOST', 'dev'),
    'scan_cacheable' => env('SCAN_CACHEABLE', false),
    StdoutLoggerInterface::class => [
        'log_level' => [
            LogLevel::ALERT,
            LogLevel::CRITICAL,
//            LogLevel::DEBUG,
            LogLevel::EMERGENCY,
            LogLevel::ERROR,
            LogLevel::INFO,
            LogLevel::NOTICE,
            LogLevel::WARNING,
        ],
    ],
    'wx_config' => [
        'app_id' => env('WX_APPID'),
        'app_secret' => env('WX_APP_SECRET'),
        'mch_id' => env('WX_MCH_ID'),
        'serial_no' => env('WX_SERIAL_NO'),
        'partner_key_v2' => env('WX_PARTNET_KEY_V2'),
        'partner_key_v3' => env('WX_PARTNET_KEY_V3'),
        'notify_url' => env('WX_NOTIFY_URL'),
        'apiclient_cert' => env('WX_APACLIENT_CERT'),
        'apiclient_key' => env('WX_APACLIENT_KEY'),
    ],
    'oss_config' => [
        'accessId' => env('OSS_ACCESS_ID'),
        'accessSecret' => env('OSS_ACCESS_SECRET'),
        'endpoint' => env('OSS_ENDPOINT'),
        'bucket' => env('OSS_BUCKET'),
        'prefix' => env('OSS_PREFIX','uploads')
    ],
    'luosimao' => [
        'key'=> env('LUOSIMAO_KEY')
    ],
    'upload' => [
        'path' => env('UPLOAD_PATH','/data/project/static'),
    ]
];
